package com.dubbo.service.impl;

import com.dubbo.bean.Order;
import com.dubbo.service.OrderService;
import com.dubbo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author by Mr. Li 2020/11/20 14:30
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private UserService userService;


    @Override
    public List<Order> initOrder(int userId) {
        List<Order> userAddressList = userService.getUserAddressList(userId);
        System.out.println(userAddressList);
        return userAddressList;
    }
}
